package softtech.apps.model;

public class BaseProduct {
	public int pId;
	public int pCategory;
	public int pColor;
	public String pName;
	public float pSize;
	public float pPrice;
	public int pServerId;
	public int pUserId;
	
	public int getpServerId() {
		return pServerId;
	}
	public void setpServerId(int pServerId) {
		this.pServerId = pServerId;
	}
	public int getpUserId() {
		return pUserId;
	}
	public void setpUserId(int pUserId) {
		this.pUserId = pUserId;
	}
	public int getpId() {
		return pId;
	}
	public void setpId(int pId) {
		this.pId = pId;
	}
	public int getpCategory() {
		return pCategory;
	}
	public void setpCategory(int pCategory) {
		this.pCategory = pCategory;
	}
	public int getpColor() {
		return pColor;
	}
	public void setpColor(int pColor) {
		this.pColor = pColor;
	}
	public String getpName() {
		return pName;
	}
	public void setpName(String pName) {
		this.pName = pName;
	}
	public float getpSize() {
		return pSize;
	}
	public void setpSize(float pSize) {
		this.pSize = pSize;
	}
	public float getpPrice() {
		return pPrice;
	}
	public void setpPrice(float pPrice) {
		this.pPrice = pPrice;
	}
	/**
	 * Ham khoi tao dung cho viec cap nhat du lieu
	 * */
	public BaseProduct(int pId, int pCategory, int pColor, String pName,
			float pSize, float pPrice,int pServerId, int pUserId) {
		super();
		this.pId = pId;
		this.pCategory = pCategory;
		this.pColor = pColor;
		this.pName = pName;
		this.pSize = pSize;
		this.pPrice = pPrice;
		this.pServerId = pServerId;
		this.pUserId = pUserId;
	}
	/**
	 * Ham khoi tao dung cho viec them moi
	 * Ham nay cung dong thoi la ham khoi tao cac doi tuong bat buoc BaseProduct
	 * */
	public BaseProduct(int pCategory, int pColor, String pName,
			float pSize, float pPrice,int pServerId, int pUserId) {
		super();
		this.pCategory = pCategory;
		this.pColor = pColor;
		this.pName = pName;
		this.pSize = pSize;
		this.pPrice = pPrice;
		this.pServerId = pServerId;
		this.pUserId = pUserId;
	}
}
